//
//  WCNurse1View.m
//  WC
//
//  Created by 杨鑫 on 15/5/11.
//  Copyright (c) 2015年 智康. All rights reserved.
//

#import "WCNMe1View.h"
#import "Macros.h"

@implementation WCNMe1View

// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
    
    UIBezierPath *path = [[UIBezierPath alloc] init];
    
    CGPoint start = CGPointMake(0, 0);
    CGPoint end = CGPointMake(rect.size.width, 0);
    [path moveToPoint:CGPointPathChange(start, kLineHorizontal, 1)];
    [path addLineToPoint:CGPointPathChange(end, kLineHorizontal, 1)];
    
    CGFloat avgW = (rect.size.width)/3.0;
    
    start = CGPointMake(avgW, 8);
    end = CGPointMake(avgW, rect.size.height-8);
    [path moveToPoint:CGPointPathChange(start, kLineVertical, 1)];
    [path addLineToPoint:CGPointPathChange(end, kLineVertical, 1)];
    
    start = CGPointMake(2*avgW, 8);
    end = CGPointMake(2*avgW, rect.size.height-8);
    [path moveToPoint:CGPointPathChange(start, kLineVertical, 1)];
    [path addLineToPoint:CGPointPathChange(end, kLineVertical, 1)];
    
    path.lineWidth = kOnePX;
    [_splitColor setStroke];
    
    [path stroke];
}

@end
